package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "WMS_BarCodeQuan", description = "条码库位表")
@TableName(value = "WMS_BarCodeQuan")
public class WmsBarCodeQuan extends FBaseEntity implements Serializable {


    
    @NotBlank(message="[条码号]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("条码号")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "barCode")
    private String barCode;
    
    @NotNull(message="[物料ID]不能为空")
    @ApiModelProperty("物料ID")
    @TableField(value = "materialID")
    private Long materialID;
    
    @NotNull(message="[仓库ID]不能为空")
    @ApiModelProperty("仓库ID")
    @TableField(value = "wHID")
    private Long wHID;
    
    @NotNull(message="[库位ID]不能为空")
    @ApiModelProperty("库位ID")
    @TableField(value = "areaID")
    private Long areaID;


}

